import { lazy } from "react";
import { Navigate } from "react-router-dom";
const Dian = lazy(() => import("../pages/Dian"));
const Dan = lazy(() => import("../pages/Dan"));
// 购物车2
const CartTwo = lazy(() => import("../pages/CartTwo"));
const Protection = lazy(() => import('../pages/Protection'))
const Singkin = lazy(() => import('../pages/Singkin'))
const Medical = lazy(() => import('../pages/Medical'))
const Slimming = lazy(() => import('../pages/Slimming'))
const Female = lazy(() => import('../pages/Female'))
const FamilyR = lazy(() => import('../pages/FamilyR'))
const CartcART = lazy(() => import('../pages/CartcART'))
const Gastroint = lazy(() => import('../pages/Gastroint'))
const Erectile = lazy(() => import("../pages/Erectile"));
const Orthopedics = lazy(() => import("../pages/Orthopedics"));
const Healthcheck = lazy(() => import("../pages/Healthcheck"));

// 商品详情
const ShopDetail = lazy(() => import("../pages/Shopdetail"));
// 健康商城页面所有路由
const HealthMallRouter = [
  {
    path: "/dian",
    element: <Dian />,
  }, {
    path: "/dan",
    element: <Dan />,
  }, {
    path: '/shopdetail',
    element: <ShopDetail />
  }, {
    path: '/carttwo',
    element: <CartTwo />
  },
  {
    path: '/protection',
    element: <Protection />
  },
  {
    path: '/singkin',
    element: <Singkin />
  },
  {
    path: '/medical',
    element: <Medical />
  },
  {
    path: '/slimming',
    element: <Slimming />
  }, {
    path: '/female',
    element: <Female />
  }, {
    path: "/carttwo",
    element: <CartTwo />,
  },
  {
    path: "/familyR",
    element: <FamilyR />,
  },
  {
    path: "/cartcART",
    element: <CartcART />,
  },
  {
    path: "/gastroint",
    element: <Gastroint />,
  },
  {
    path: '/erectile',
    element: <Erectile />
  },
  {
    path: '/orthopedics',
    element: <Orthopedics />
  },
  {
    path: '/healthcheck',
    element: <Healthcheck />
  }
];


export default HealthMallRouter;
